<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('承德市洁净煤信息化管理平台')" />
    <style>
        body{
            font-size: 12px;
        }
        .row {
            padding: 3px 7px;
        }
        p {
            margin:10px;
        }
    </style>
</head>
<body class="white-bg">
<div class="text-center" style="font-size:17px;padding: 10px 0;background: #605ca8;color:#fffbe6">承德市洁净煤信息化管理平台</div>

<div class="row">
    <div class="ibox float-e-margins" style="border:none">
        <div class="ibox-content" style="border-style:none">
            <h4>基本信息</h4>
            <div class="row" th:object="${userInfo}">
                <div class="row"><div class="col-sm-12">
                    住址：
                    <span th:text="*{address}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">户主姓名：
                    <span th:text="*{masterName}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">手机号：
                    <span th:text="*{masterPhoneNumber}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">身份证号：
                    <span th:text="*{masterIdentityCardNumber}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">取暖方式：
                    <span th:text="*{keepwarmTypeValue}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">取暖面积：
                    <span th:text="*{areaValue}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">
                    是否配有型煤专用炉具：
                    <span th:text="*{stove == 1 ? '是' : '否'}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">
                    是否安装一氧化碳报警器：
                    <span th:text="*{alarm == 1 ? '是' : '否'}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">
                    是否发放明白纸：
                    <span th:text="*{note == 1 ? '是' : '否'}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">
                    是否进行广播宣传：
                    <span th:text="*{media == 1 ? '是' : '否'}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">
                    网格员：
                    <span th:text="*{gridMemeber?.name}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">
                    包联人：
                    <span th:text="*{baolianren?.name}"></span>
                </div></div>
                <div class="row"><div class="col-sm-12">
                    包联人电话：
                    <span th:text="*{baolianren?.phone}"></span>
                </div></div>
            </div>
            <div class="hr-line-dashed"></div>
            <h4>购煤记录</h4>
            <div th:each="order : ${orders}">
                <div class="row">
                    <div class="col-xs-6">
                        购煤时间：<span th:text="${#dates.format(order.createTime, 'yyyy-MM-dd')}"></span>
                    </div>
                    <div class="col-xs-6">
                        购煤数量：<span th:text="${order.amount}+'吨'"></span>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-6">
                        购煤款：<span th:text="${order.money}+'元'"></span>
                    </div>
                    <div class="col-xs-6">
                        收煤时间：<span th:if="${order.takeinTime != null && order.status==2}" th:text="${#dates.format(order.takeinTime, 'yyyy-MM-dd')}"></span>
                    </div>
                </div>
                <hr>
            </div>
        </div>
    </div>
</div>
</body>